package com.wang.dao;

import com.wang.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookMapper {
    //增加
    int addBook(Books books);
    //删除
    int deleteBookById(@Param("bookId") int id);
    //更新
    int updateBook(Books books);
    //查询
    Books queryBookById(@Param("bookId") int id);
    //查询全部
    List<Books> queryAllBook();
    //查询bookName
    Books queryBookByName(@Param("bookName") String bookName);
}
